package com.pagoda.nerp.trade.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class MdAccountRole {

    private String roleCode; // 角色代码
    private String roleName; // 角色名称

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    /*=============================== 以上为冗余属性进行详情的获取 =======================*/

    /**
     * 子账户与角色关系ID
     *
     * @mbg.generated
     */
    private Integer accountRoleId;

    /**
     * 子账户ID
     *
     * @mbg.generated
     */
    private Long accountId;

    /**
     * 角色ID
     *
     * @mbg.generated
     */
    private Integer roleId;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date modifiyTime;

    public Integer getAccountRoleId() {
        return accountRoleId;
    }

    public void setAccountRoleId(Integer accountRoleId) {
        this.accountRoleId = accountRoleId;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifiyTime() {
        return modifiyTime;
    }

    public void setModifiyTime(Date modifiyTime) {
        this.modifiyTime = modifiyTime;
    }

    @Override
    public String toString() {
        return "MdAccountRole{" +
                "roleCode='" + roleCode + '\'' +
                ", roleName='" + roleName + '\'' +
                ", accountRoleId=" + accountRoleId +
                ", accountId=" + accountId +
                ", roleId=" + roleId +
                ", createTime=" + createTime +
                ", modifiyTime=" + modifiyTime +
                '}';
    }
}